var app = angular.module('webapp');

app.service('AssistService', ['$http','$q', AssistService]);

function AssistService($http,$q){
	return {
		queryAssistAll:function(data){
			return handleRequest('GET','/queryAssistAll',data,$http,$q);
		},
		removeAssist:function(data){
			return handleRequest('POST','/removeAssist',data,$http,$q);
		},
		updateAssist:function(data){
			return handleRequest('POST','/updateAssist',data,$http,$q);
		},
		addAssist:function(data){
			return handleRequest('POST','/addAssist',data,$http,$q);
		}
	};
}